package com.mall.service;

import com.mall.entity.Order;
import com.mall.entity.User;

import java.util.List;

public interface OrderService {

    Order createOrder(User user);

    Order getOrderById(Long orderId);

    List<Order> getOrdersByUser(User user);

    List<Order> getAllOrders();

    Order updateOrderStatus(Long orderId, String status);

    void cancelOrder(Long orderId);
}    